package com.le.tester.lock;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;

/**
 * createTime：2024-12-03 14:31
 * description：抽象lock
 */
public abstract class AbstractLock implements Lock {

    protected String lockName;

    @Override
    public void lock() {

    }

//    public void lockExpireTime(long time, TimeUnit timeUnit) {
//
//    }

    @Override
    public void unlock() {

    }


    @Override
    public boolean tryLock(long time, TimeUnit unit) throws InterruptedException {
        return false;
    }
}
